//
//  MusicModel.m
//  OurRelax
//
//  Created by 于宾尧 on 15/6/19.
//  Copyright (c) 2015年 于宾尧. All rights reserved.
//

#import "MusicModel.h"

@implementation MusicModel

-(void)dealloc
{
//    [_msg_id release];
//    [_title release];
//    [_pic release];
    
    [super dealloc];
}

-(instancetype)initWithDic:(NSMutableDictionary *)dic
{
    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dic];
        
    }
    
    return self;
}

+(id)musicModelWithDic:(NSMutableDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}

+(NSMutableArray *)musicWithArray:(NSMutableArray *)array
{
    NSMutableArray *arrayM = [NSMutableArray array];
    
    for (NSMutableDictionary *dic in array) {
        
        MusicModel *music = [MusicModel musicModelWithDic:dic];
        
        [arrayM addObject:music];
        
    }
    
    return arrayM;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
